-
Notifications
You must be signed in to change notification settings - Fork 1
Configure Minio buckets, policies, and users #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@LakshithadeSilva @awalford16 does your work supersede this? |
|
Possibly. My work is mostly based on this, with some additional tweaks for setting anonymous access on the MinIO buckets. Once the STS approach is finalised, we can do the final work either on this PR or my branch. |
|
Can't review it as this is originally my PR, but LGTM @JimMadge |
|
@LakshithadeSilva is this ready to merge? |
|
@JimMadge Yes :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I like the model of running a job to configure MinIO using it's own CLI.
We might do similar things for cilium/longhorn.
@craddm can you also take a look at this. I think there may be some stuff leftover from experimenting, and the stack config might be overwriting changes on main.
| args=[ | ||
| "mc --insecure alias set argoartifacts http://minio.argo-artifacts.svc.cluster.local:80 $(MINIO_ROOT_USER) $(MINIO_ROOT_PASSWORD) &&" | ||
| "/tmp/scripts/setup.sh argoartifacts;", | ||
| ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to pass some commands as an argument here and others in a script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@craddm possibly explain better, but 'mc' expects the alias to set first so the subsequent commands can refer to that alias. The script includes a bunch of mc commands, but alternatively we can have those here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, does it not work if the mc alias set command is in the script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified this so all the commands are in the script, and the script now gets everything from the environment variables instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question about whether we can simplify the mc commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any other comments @craddm
No, I think @LakshithadeSilva's removed the remaining vestigial code |
Closes #35